package com.example.test.mapper;

import com.example.test.Bean.UserBean;
import com.example.test.Bean.UserImgBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    UserBean getInfo(String name, String password);
    List<UserBean> getAllUser();
    int insertUser(UserBean userBean); // 插入新的用户

    //删除用户
    int deleteUser(String id);
    UserBean getUserById(String id);

    //修改用户
    int updateUser(UserBean userBean);

    List<UserBean> selectUser4Page();
    int insertUserImg(UserImgBean userImgBean);
    List<UserImgBean>getUserImgsById(String user_id);
}
